﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace csharp_Movies_315.Models
{
    // Model
    public class Movie
    {
        public int MovieId { get; set; } // guid - numbers
        public string Title { get; set; } // name of of the post
        public int Rating { get; set; } // rating of post - 1-10
        public string Description  { get; set; } // full description of post
        public string CreatedBy { get; set; } // who posted the listing
        public DateTime CreatedOn { get; set; } // when the ad was created
        public string City { get; set; } // city of post
        public string State { get; set; } // state of post

    }
    // View Model - representation/vessel for sending data to the view
    public class MovieIndexVm // Entity - Page - ViewModel
    {
        public string Greeting { get; set; } // hello world
        public List<Movie> Movies { get; set; } // hold a list of Movies 
    }

    //View Model - show the details page of X movie
    public class MovieDetailsVm
    {
        public Movie TheMovie { get; set; } // the movie user click to view Details
    }

}